package com.dragon.aipictures.manager.sharding.test;

import org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm;

import java.util.Properties;

public class ShardingSnowflakeGenerator implements KeyGenerateAlgorithm {


    @Override
    public Comparable<?> generateKey() {
        return EnhancedSnowflake.nextId(100);
    }

    @Override
    public Properties getProps() {
        return null;
    }

    @Override
    public void init(Properties properties) {

    }
}